package com.learn.sqlsession.impl;

import com.learn.pojo.Configuration;
import com.learn.sqlsession.SqlSession;
import com.learn.sqlsession.SqlSessionFactory;

public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlsession(configuration);
    }
}
